package com.yipinhouse.common.result;

import com.yipinhouse.common.resultcode.ResultCode;

public enum CommonResultCode implements ResultCode {
    SUCCESS(200,"操作成功！"),
    FAIL(500,"操作失败！"),
    PARAM_IS_ERROR(300,"参数错误！")

    ;
    private int code;
    private String msg;

    private CommonResultCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.msg;
    }
}
